package variable;

/**
 * An Object to represent a variable whose value does not go out of scope 
 * after initializing. Useful as a variable that can be passed to a function.
 * 
 * @author Shimu
 * @date 12-Apr-2013
 */
public class Variable<T> {
    
    private T value;
    
    public Variable(T value) {
        this.value = value;
    }

    /**
     * @return the value of this Variable
     */
    public T getValue() {
        return value;
    }

    /**
     * @param value the value new value of this Variable
     */
    public void setValue(T value) {
        this.value = value;
    }
    
}
